package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "material_definitions")
public class MaterialDefinitionsModel
{
    private List<MaterialDefinitionModel> materialDefinitionModels = new ArrayList<MaterialDefinitionModel>();

    @XmlElement(name = "material_definition")
    public List<MaterialDefinitionModel> getMaterialDefinitionModels()
    {
        return materialDefinitionModels;
    }

    public void setMaterialDefinitionModels(List<MaterialDefinitionModel> materialDefinitionModels)
    {
        this.materialDefinitionModels = materialDefinitionModels;
    }

    public void addMaterialDefinition(MaterialDefinitionModel materialDefinitionModel)
    {
        materialDefinitionModels.add(materialDefinitionModel);
    }
}
